package com.acyouzi.xiaomi;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * 17/9/18 20:15
 *
 * @author sunxu
 */
public class Codec {
  public static List<String> res;
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String tmp;
    while (in.hasNext()){
      tmp = in.nextLine();
      res = new ArrayList<>();
      helper(tmp,0,new StringBuilder());
      for (int i = 0; i < res.size(); i++) {
        System.out.print(res.get(i));
        if (i != res.size()-1) System.out.print(" ");
      }
      System.out.println();
    }

  }
  public static void helper( String str, int index, StringBuilder builder){
    if (str.length() <= index){
      res.add(builder.toString());
      return;
    }
    if (index < str.length() -1 && str.charAt(index+1) != '0'){
      builder.append((char)('a' + (str.charAt(index) - '1')));
      helper(str,index+1,builder);
      builder.deleteCharAt(builder.length()-1);
    }else if (index == str.length() - 1){
      builder.append((char)('a' + (str.charAt(index) - '1')));
      helper(str,index+1,builder);
      builder.deleteCharAt(builder.length()-1);
    }
    if (index < str.length() -1 && ( str.charAt(index) == '1' || (str.charAt(index) == '2' && str.charAt(index+1) < '7'))){
      int val = Integer.parseInt(String.valueOf( new char[]{str.charAt(index),str.charAt(index+1)})) - 1;
      builder.append((char)('a' + val));
      helper(str,index+2,builder);
      builder.deleteCharAt(builder.length()-1);
    }
  }
}
